package edu.gmu.middleware;

/**
 * Callback is executed when specified topic is received - the
 * method is guaranteed to be passed instance of specified class.
 * Implementers simply need to cast to indicated type.
 * 
 * @author  James H. Pope
 * @version $Revision:$ $Date:$
 */
public interface Callback
{
    /**
     * Executes method passing indicated message.
     * @param message
     */
    public void execute(Message message);
}
